package com.ankebio.mybatisgenerator.config;

import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;
import org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl;

import java.sql.Types;

/**
 * 自定义类型映射器
 */
public class MyJavaTypeResolver extends JavaTypeResolverDefaultImpl {
	public MyJavaTypeResolver() {
		super();
		typeMap.put(Types.DECIMAL, new JdbcTypeInformation("DECIMAL", //$NON-NLS-1$
				new FullyQualifiedJavaType(Double.class.getName())));
	}
}
